package com.kxq.zhuoyue.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.core.JdbcTemplate;

import javax.sql.DataSource;

/**
 * <pre>
 * 描述：
 * </pre>
 * <p>
 * Time：2021/12/9 10:59
 * </p>
 * Author：chz
 */
@Configuration
public class JdbcTemplateConfig {
    public static JdbcTemplate jdbcTemplate;

    @Autowired
    private DataSource baseDs;

    @Autowired
    public void newInstance() {
        jdbcTemplate = new JdbcTemplate(baseDs);
    }

}
